]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Call _updateCloneGeometry() for MagnifierMouseTrackingMode.NONE
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 23 Jul 2026 10:03:43 +0000 (18:03 +0800)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:51:01 +0000 (18:51 +0200)
The NONE mode is hidden from gnome-control-center, but if you force it
then it should also update the cursor and crosshairs when the pointer
moves.

Suggested by: Matthew Hiltner

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4290>
(cherry picked from commit 7cc0a83aaecedb7f6e5c9932a198c8d6999b8a5b)

js/ui/magnifier.js

index 4536436c1b9555df153898021413b364c74f9735..c6e3d49fc59dad1d915d7634f43dacfe5edb7996 100644 (file)
@@ -1315,10 +1315,12 @@ class ZoomRegion {
      */
     scrollToMousePos() {
         this._followingCursor = true;
-        if (this._mouseTrackingMode !== GDesktopEnums.MagnifierMouseTrackingMode.NONE)
+        if (this._mouseTrackingMode !== GDesktopEnums.MagnifierMouseTrackingMode.NONE) {
             this._changeROI({redoCursorTracking: true});
-        else
+        } else {
+            this._updateCloneGeometry();
             this._updateMousePosition();
+        }
 
         this._clearScrollContentsTimer();
         this._scrollContentsTimerId = GLib.timeout_add_once(GLib.PRIORITY_DEFAULT, POINTER_REST_TIME, () => {